package com.code.day03;

import java.util.Scanner;

public class ScannerJava {
    public static void main(String[] args) {

//        Scanner sc = new Scanner(System.in);
//        //调用方法,实现键盘录入
//        int data1 = sc.nextInt();
//        System.out.println("data1 = " + data1);
//        String data2 = sc.next();
//        System.out.println("data2 = " + data2);
//
//        //关闭scanner对象
//        sc.close();
//
//        Scanner sc1 = new Scanner(System.in);
//        int heShang1 = sc1.nextInt();
//        int heShang2 = sc1.nextInt();
//        int heShang3 = sc1.nextInt();
//        int temp = heShang1 >heShang2 ? heShang1 : heShang2;
//        int max = temp > heShang3 ? temp : heShang3;
//        System.out.println(max);
//
//
//        //关闭Scanner
//        sc.close();
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的姓名:");
        String name = sc.nextLine();
        System.out.println(name);
        sc.close();
    }
}
